require("./ad.css")

  // 获取到a标签和time
  let span = document.querySelector(".time")
  let s = 6
  let times = setInterval(function () {
      if (s === 0) {
          clearInterval(times)
          location.href=""
      } else {
          s = --s
          console.log(s);
      }
      span.innerHTML = s + "s"

  }, 1000)